package miao.demo.service.impl;

import miao.demo.dao.BookDao;
import miao.demo.dao.impl.BookDaoImpl;
import miao.demo.service.BookService;

public class BookServiceImpl implements BookService {
    //5.删除业务层使用new创建对像的方式  xxx private BookDao bookDao = new BookDaoImpl();
    private BookDao bookDao;
    @Override
    public void save() {
        System.out.println("book service save...");
        bookDao.save();
    }

    //6.提供对象对象的set方法


    public void setBookDao(BookDao bookDao) {
        this.bookDao = bookDao;
    }
}
